home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- REM This is HIDETHEM.BAT
- REM ****** DOS 5.0 TEST FOLLOWS ******
- IF EXIST VERSION.COM GOTO START
- ECHO This needs VERSION.COM to work
- GOTO END
- :START
- VERSION
- IF ERRORLEVEL 5 GOTO OKAY
- ECHO This needs DOS 5.0 or later
- ECHO to work properly.
- GOTO END
- :OKAY
- REM ****** DOS 5.0 TEST ENDS ******
- IF %1!==! GOTO OOPS
- IF %1==H GOTO HIDE
- IF %1==h GOTO HIDE
- IF %1==U GOTO UNHIDE
- IF %1==u GOTO UNHIDE
- GOTO OOPS
- :HIDE
- ATTRIB +H *.*
- ECHO All files hidden
- GOTO END
- :UNHIDE
- ATTRIB -H *.*
- ECHO All files UNhidden
- GOTO END
- :OOPS
- ECHO Enter %0 H to hide all
- ECHO files in the current
- ECHO directory, or %0 U to
- ECHO "unhide" them all
- :END
-